EXES = testImage testmatrixProcessing \
	readwrite readwrite_color testcs

all:
	${MAKE} ${EXES}

INCLUDE = -I../include
LIB = -L../lib

testcs: testcs.o 
	g++ -o testcs testcs.o $(LIB) -limage

testcs.o: testcs.cpp
	g++ -c testcs.cpp $(INCLUDE)

readwrite_color: readwrite_color.o 
	g++ -o readwrite_color readwrite_color.o $(LIB) -limage

readwrite_color.o: readwrite_color.cpp
	g++ -c readwrite_color.cpp $(INCLUDE)

readwrite: readwrite.o 
	g++ -o readwrite readwrite.o $(LIB) -limage

readwrite.o: readwrite.cpp
	g++ -c readwrite.cpp $(INCLUDE)

testImage: testImage.o 
	g++ -o testImage testImage.o $(LIB) -limage

testImage.o: testImage.cpp
	g++ -c testImage.cpp $(INCLUDE)

testmatrixProcessing: testmatrixProcessing.o 
	g++ -o testmatrixProcessing testmatrixProcessing.o $(LIB) -limage

testmatrixProcessing.o: testmatrixProcessing.cpp
	g++ -c testmatrixProcessing.cpp $(INCLUDE)

clean: 
	-rm -rf *.o
